﻿using System;
using System.Collections.Generic;
using Common;
using CSC440TeamOne.CSC440BusinessService.Interface.Services;

namespace CSC440TeamOne.CSC440BusinessService.Services
{
    public class DummyDataService : IDataService
    {
        public IEnumerable<TrackableHealthParameter> LoadTrackableHealthParameterProgressForUser(User user)
        {
            return new[]
            {
                new TrackableHealthParameter(){ EnteredOn=DateTime.Parse("1/1/2000"), ID=1, Name="Weight", Value=75D, MaxValue=100D, MinValue=50D},
                new TrackableHealthParameter(){ EnteredOn=DateTime.Parse("1/2/2000"), ID=2, Name="Weight", Value=80D, MaxValue=100D, MinValue=50D},
                new TrackableHealthParameter(){ EnteredOn=DateTime.Parse("1/3/2000"), ID=3, Name="Weight", Value=79D, MaxValue=100D, MinValue=50D},
                new TrackableHealthParameter(){ EnteredOn=DateTime.Parse("1/4/2000"), ID=4, Name="Weight", Value=90D, MaxValue=100D, MinValue=50D},
                new TrackableHealthParameter(){ EnteredOn=DateTime.Parse("1/5/2000"), ID=5, Name="Weight", Value=74D, MaxValue=100D, MinValue=50D}
            };
        }

        public IEnumerable<HealthGoal> FindHeathGoalsForUser(User user)
        {
            return new[]
            {
                new HealthGoal() { Description = "Loose Weight", ID = 1, Selected = false }, 
                new HealthGoal() { Description = "Lower Blood Pressure", ID = 2, Selected = true }, 
                new HealthGoal() { Description = "Quit Smoking", ID = 3, Selected = false }, 
                new HealthGoal() { Description = "Walk 10k", ID = 4, Selected = true }
            };
        }


        public IEnumerable<TrackableHealthParameter> LoadDailyTrackableHealthParametersForUser(User user)
        {
            return new[]
            {                    
                new TrackableHealthParameter() { Name = "Weight", ID=1 } ,
                new TrackableHealthParameter() { Name = "Blood Pressure (systolic / diastolic)", ID=2 } ,
                new TrackableHealthParameter() { Name = "Distance walked (0.0 miles)", ID=3 } 
            };
        }

        public void SaveUserHealthGoal(User user, HealthGoal healthGoal)
        {
            //do noting for now, but should create a record is there isn't one, then update the selected value
        }

        public IEnumerable<HealthParameter> LoadAllHealthParameters()
        {
            return new[]
            {
                new HealthParameter(){ Description="Defines the tolerances for a persons weight", ID=1, Name="Weight"},
                new HealthParameter(){ Description="Defines the tolerances for a Systolic Blood Pressure", ID=2, Name="Blood Pressure Systolic"},
                new HealthParameter(){ Description="Defines the tolerances for a Diastolic Blood Pressure", ID=3, Name="Blood Pressure Diastolic"}
            };
        }

        public HealthParameter FindHealthParameterById(int healthParameterID)
        {
            return new HealthParameter()
            {
                Description = "Etiam vestibulum lacus id metus tincidunt vel consequat nulla suscipit. In vitae metus eget magna pellentesque blandit. Duis volutpat viverra dignissim. Nullam ultrices pretium diam, non elementum risus accumsan sit amet. Nam eget ipsum diam, ac malesuada justo. Mauris euismod consequat velit, id feugiat purus rhoncus lobortis. Ut sollicitudin tempus justo, et consectetur orci molestie sed. Quisque tempus commodo risus quis lacinia. Nulla consectetur quam sit amet mi aliquet sagittis. Etiam suscipit turpis quis libero vehicula vulputate. Aliquam pharetra dolor at neque bibendum at convallis nisi rhoncus. Nam ut ligula id diam bibendum lacinia.",
                Formula = "Aliquam vitae lacus nibh",
                ID = 1,
                Name = "Fusce mi mauris"
            };
        }

        public void Update(HealthParameter healthParameter)
        {
            //do nothing, but would go on to update this health paraemter
        }

        public int InsertDailyHealthParameterForUser(TrackableHealthParameter dailyHealthParameter, User user)
        {
            return 1;

            //would add a new trackablehealthparameter for user. 
            //TODO: Notice that when a TrackableHealthParameter is returned for a user to fill in, it shouldn't have a number, yet, it should have some id that can be tied back, unless this method is suppose to be updating empty values.
            //there may be a logic problem here
        }

        public IEnumerable<UserManualSection> LoadAllUserManualSections()
        {
            return new[] 
            { 
                new UserManualSection()
                {
                    Id = 1,
                    Parent = 0,
                    Title = Guid.NewGuid().ToString()
                },
                new UserManualSection()
                {
                    Id = 2,
                    Parent = 1,
                    Title = Guid.NewGuid().ToString()
                },
                new UserManualSection()
                {
                    Id = 3,
                    Parent = 2,
                    Title = Guid.NewGuid().ToString()
                }
            };
        }


        public IEnumerable<UserManualContent> FindForUserManualSection(UserManualSection userManualSection)
        {
            return new[]
            {
                new UserManualContent()            
                {
                    Caption = Guid.NewGuid().ToString(),
                    Content = Guid.NewGuid().ToString(),                
                    Deleted = false,
                    Image = Guid.NewGuid().ToString(),
                    Title = Guid.NewGuid().ToString(),
                    Id = 1,
                    UserManualSectionId = 0
                },
                new UserManualContent()
                {
                    Caption = Guid.NewGuid().ToString(),
                    Content = Guid.NewGuid().ToString(),
                    Deleted = false,
                    Image = Guid.NewGuid().ToString(),
                    Title = Guid.NewGuid().ToString(),
                    Id = 2,
                    UserManualSectionId = 1
                },           
                new UserManualContent()
                {
                    Caption = Guid.NewGuid().ToString(),
                    Content = Guid.NewGuid().ToString(),
                    Deleted = false,
                    Image = Guid.NewGuid().ToString(),
                    Title = Guid.NewGuid().ToString(),
                    Id = 3,
                    UserManualSectionId = 2
                }
            };
        }

        public int InsertUserManualSection(UserManualSection currentUserManualSection)
        {
            return int.MaxValue;
        }

        public void UpdateUserManualSection(UserManualSection currentUserManualSection)
        {

        }

        public int InsertUserManualContent(UserManualContent userManualContent)
        {
            return int.MaxValue;
        }

        public void UpdateUserManualContent(UserManualContent userManualContent)
        {

        }

        #region IDataService Members


        public Recipe FindRecipeByID(int recipeID)
        {
            Recipe r2 = new Recipe();
            r2.name = "fadfadsfasdf";
            RecipeIngredient ri1 = new RecipeIngredient();
            Ingredient ri1I = new Ingredient();
            ri1I.name = "asdfasdf";
            ri1.quantity = 1;
            ri1.measurement = "sfasdff";
            ri1.ingredient = ri1I;
            RecipeIngredient ri2 = new RecipeIngredient();
            Ingredient ri2I = new Ingredient();
            ri2I.name = "gesagfd";
            ri2.quantity = 1;
            ri2.measurement = "gsgsdh";
            ri2.ingredient = ri2I;
            r2.ingredients.Add(ri1);
            r2.ingredients.Add(ri2);
            r2.directions = "fasdf sda fa sdf asdf asd fas dfa sdfasd";
            r2.createdBy = new User("Joe", "Shmo", "jshmo@email.net", new DateTime(2011, 11, 11), "Male", "Caucasian", "53186", "U.S.A.");
            r2.dateSubmitted = new DateTime(2011, 11, 13);
            r2.RecipeID = 000004;

            return r2;
        }


        /// <summary>
        /// Assembles a list of questions from the database
        /// </summary>
        public List<Question> populateQuestionList()
        {
            List<Question> questionList = new List<Question>();

            // Question 1
            Question q = new Question();
            q.QuestionID = 1;
            q.PageID = 1;
            q.QuestionText = "Do you have any known conditions or diseases?";
            q.AnswerControlType = Question.Types.RadioButton;
            q.Required = true;
            q.RequiredMessage = "Please complete question regarding known conditions or diseases.";
            Question a1 = new Question();
            a1.QuestionText = "Yes";
            a1.AnswerControlType = Question.Types.ListItem;
            Question a2 = new Question();
            a2.QuestionText = "No";
            a2.AnswerControlType = Question.Types.ListItem;
            List<Question> answers = new List<Question>();
            answers.Add(a1);
            answers.Add(a2);
            q.ChildItems = answers;
            HelpText help = new HelpText();
            help.Header = "What kind of conditions or diseases do you mean?";
            help.Description = "Choose yes if you have conditions such as diabetes, asthma, other musculoskeletal problems, or any condition that requires prescription medication.";
            q.HelpText = help;
            q.Locked = true;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Special followup to question 1, option 1
            q = new Question();
            q.QuestionID = 1001;
            q.PageID = 2;
            q.AnswerControlType = Question.Types.Literal;
            q.QuestionText = "Please complete the following survey before proceeding.";
            q.AnswerText = "<a href=\"http://www.inspiretrainingsystems.com/ParQ.pdf\">Par-Q and YOU</a>";
            help = new HelpText();
            help.Header = "Why fill out a PAR-Q and YOU?";
            help.Description = "It is important for you to answer these questions before you plan on starting a new exercise program.  It is medically necessary to make sure you are healthy and that you do not have any problems that need to be taken care of before you start exercising. It’s all about your safety!";
            q.HelpText = help;
            q.Locked = true;
            q.ShowOnPrintout = false;
            questionList.Add(q);

            // Special followup to question 1, option 2
            q = new Question();
            q.QuestionID = 1002;
            q.PageID = 2;
            q.AnswerControlType = Question.Types.Literal;
            q.QuestionText = "Please complete the following survey before proceeding.";
            q.AnswerText = "<a href=\"http://bfec.kenyon.edu/Healthy_Kenyon/AHA-ACSM.pdf\">AHA/ACSM Health/Fitness Facility Pre participation Screening Questionnaire</a>";
            help = new HelpText();
            help.Header = "Why fill out an AHA/ACSM Health/Fitness Facility Pre-participation Screening Questionnaire?";
            help.Description = "It is important for you to answer these questions before you plan on starting a new exercise program.  It is medically necessary to make sure you are healthy and that you do not have any problems that need to be taken care of before you start exercising. It’s all about your safety!";
            q.HelpText = help;
            q.Locked = true;
            q.ShowOnPrintout = false;
            questionList.Add(q);

            // Special followup to question 1, validate
            q = new Question();
            q.QuestionID = 1003;
            q.PageID = 2;
            q.QuestionText = "Have you completed the survey and accept the guidance/risks given in the survey?";
            q.AnswerControlType = Question.Types.RadioButton;
            q.Required = true;
            q.RequiredMessage = "Please complete survey acknowledgement.";
            answers = new List<Question>();
            Question a = new Question();
            a.QuestionText = "Yes";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "No";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = false;
            questionList.Add(q);

            // Question 2
            q = new Question();
            q.QuestionID = 2;
            q.PageID = 3;
            q.QuestionText = "Weight (lbs)";
            q.AnswerControlType = Question.Types.TextBox;
            q.Required = true;
            q.RequiredMessage = "Please enter your weight.";
            q.RegExValidation = "^([1-9][0-9]|[1-9][0-9][0-9])$";
            q.RegExMessage = "Please enter a valid weight.";
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 3
            q = new Question();
            q.QuestionID = 3;
            q.PageID = 3;
            q.QuestionText = "Height (feet' inches\")";
            q.AnswerControlType = Question.Types.TextBox;
            q.Required = true;
            q.RequiredMessage = "Please enter your height.";
            q.RegExValidation = "^(([1-9]|[1][0-9])' ?([0-9]|[1][0-1])\")$";
            q.RegExMessage = "Please enter a valid height.";
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 4
            q = new Question();
            q.QuestionID = 4;
            q.PageID = 3;
            q.QuestionText = "Activity Level (How many steps taken per day)";
            q.AnswerControlType = Question.Types.RadioButton;
            q.Required = true;
            q.RequiredMessage = "Please enter your activity level.";
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "< 5,000: Sedentary";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "5,000-7,499: Low Active";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "7,500-9,999: Somewhat Active";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "10,000-12,499: Active";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "> 12,500: Highly Active";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            help = new HelpText();
            help.Header = "How do you determine step counts?";
            help.Description = "<u>Sedentary</u> would be considered if you just sit around the house or at work all day and do not do a lot of walking.<br><u>Low active</u> would be considered if you just do everyday activities but do not exercise on top of that.<br><u>Somewhat active</u> would be considered doing everyday activities and maybe exercising once a week by walking.<br><u>Active</u> would be doing everyday activities and exercising had a moderate intensity by walking, jogging, lifting weights, etc. 3 days a week<br><u>Highly active</u> would be doing all those things listed above but at a high intensity for 3 days or more a week.";
            q.HelpText = help;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 5
            q = new Question();
            q.QuestionID = 5;
            q.PageID = 3;
            q.QuestionText = "How would you rate your present health status?";
            q.AnswerControlType = Question.Types.RadioButton;
            q.Required = true;
            q.RequiredMessage = "Please enter your health status.";
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Excellent";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Good";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Average";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Fair";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Poor";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 6
            q = new Question();
            q.QuestionID = 6;
            q.PageID = 4;
            q.QuestionText = "Do you have a primary physician?";
            q.AnswerControlType = Question.Types.RadioButton;
            q.Required = true;
            q.RequiredMessage = "Please complete the question regarding your primary physician.";
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Yes";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "No";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 7
            q = new Question();
            q.QuestionID = 7;
            q.PageID = 4;
            q.QuestionText = "Do you receive yearly physicals?";
            q.AnswerControlType = Question.Types.RadioButton;
            q.Required = true;
            q.RequiredMessage = "Please complete the question regarding your yearly physicals.";
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Yes";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "No";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            help = new HelpText();
            help.Header = "How many physicals do you need according to your age?";
            help.Description = "<u>Age 18-39:</u> You should have 2 physical exams during this time<br><u>Age 40-65:</u> You should have a physical exam every 1-5 years<br><u>Age 65 or older:</u> You should have a physical exam each year.<br><br><i>*Information courtesy of http://www.umm.edu/ency/article/002125.htm</i>.";
            q.HelpText = help;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 8
            q = new Question();
            q.QuestionID = 8;
            q.PageID = 5;
            q.QuestionText = "Are you pregnant or breast feeding?";
            q.AnswerControlType = Question.Types.RadioButton;
            q.Required = true;
            q.RequiredMessage = "Please complete the question regarding prengancy or breast feeding";
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Yes";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "No";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 9
            q = new Question();
            q.QuestionID = 9;
            q.PageID = 5;
            q.QuestionText = "What medications do you take?";
            q.AnswerControlType = Question.Types.TextBox;
            q.Required = false;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 10
            q = new Question();
            q.QuestionID = 10;
            q.PageID = 5;
            q.QuestionText = "What vitimins do you take?";
            q.AnswerControlType = Question.Types.TextBox;
            q.Required = false;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 11
            q = new Question();
            q.QuestionID = 11;
            q.PageID = 5;
            q.QuestionText = "What supplements do you take?";
            q.AnswerControlType = Question.Types.TextBox;
            q.Required = false;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 12
            q = new Question();
            q.QuestionID = 12;
            q.PageID = 6;
            q.QuestionText = "Check if you experience any of the following:";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = true;
            q.RequiredMessage = "Please choose at least one option.";
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Pain or discomfort in the chest, neck, jaw, arms, or other areas that may be due to myocardial ischemia (lack of adequate circulation)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Shortness of breath at rest, during daily activities, or with mild exertion";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Dizziness or syncope (fainting)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Orthopnea (breathing discomfort when not in an upright position) or paroxysmal nocturnal dyspnea (interrupted breathing at night)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Ankle edema (swelling)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Palpitations (abnormal rapid beating of the heart) or tachycardia (rapid heart beat)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Intermittent claudication (cramping pain and weakness in legs, especially calves, during walking due to inadequate blood supply to muscles)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Known heart murmur (atypical heart sound indicating a structural or functional abnormality)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Unusual or unexplained fatigue";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "I don't know";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Page 7 Header
            q = new Question();
            q.QuestionID = 1010;
            q.PageID = 7;
            q.AnswerControlType = Question.Types.Literal;
            q.QuestionText = "Why should I answer these questions?";
            help = new HelpText();
            help.Header = "Why should I answer these questions?";
            help.Description = "By answering these questions it will allow us to find out if there are any risk factors for you to start an exercise program.  If there are risk factors then it will be important for you to see your doctor for your health and safety.";
            q.HelpText = help;
            q.Locked = true;
            q.ShowOnPrintout = false;
            questionList.Add(q);

            // Question 13
            q = new Question();
            q.QuestionID = 13;
            q.PageID = 7;
            q.QuestionText = "Age/Gender related (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "You are male and over 45 years old";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You are female and over 55 or have premature menopause without estrogen replacement therapy";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 14
            q = new Question();
            q.QuestionID = 14;
            q.PageID = 7;
            q.QuestionText = "Diagnosed Disease related (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "You have a diagnosed cardiovascular disease (cardiac, peripheral vascular, or cerebrovascular disease)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You have a diagnosed pulmonary disease (chronic obstructive pulmonary disease, asthma, interstitial lung disease, or cystic fibrosis)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You have a diagnosed metabolic disease (diabetes mellitius (type I or II), thyroid disorders, renal or liver disease)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You do not know this information";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Page 8 Header
            q = new Question();
            q.QuestionID = 1011;
            q.PageID = 8;
            q.AnswerControlType = Question.Types.Literal;
            q.QuestionText = "Why should I answer these questions?";
            help = new HelpText();
            help.Header = "Why should I answer these questions?";
            help.Description = "By answering these questions it will allow us to find out if there are any risk factors for you to start an exercise program.  If there are risk factors then it will be important for you to see your doctor for your health and safety.";
            q.HelpText = help;
            q.Locked = true;
            q.ShowOnPrintout = false;
            questionList.Add(q);

            // Question 15
            q = new Question();
            q.QuestionID = 15;
            q.PageID = 8;
            q.QuestionText = "Do you have hypertension? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Systolic blood pressure > 140 mmHg (confirmed by measurement on at least two separate occasions)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Diastolic blood pressure > 90 mmHg (confirmed by measurement on at least two separate occasions)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You are using anti-hypertensive medication";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You do not know this information";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 16
            q = new Question();
            q.QuestionID = 16;
            q.PageID = 8;
            q.QuestionText = "Do you have Hypercholesterolemia? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Low density lipoprotein > 130 mg/dL";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Total serum cholesterol > 200 mg/dL";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "High-density lipoprotein cholesterol < 200 mg/dL";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You are using lipid-lowering medication";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You do not know this information";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 17
            q = new Question();
            q.QuestionID = 17;
            q.PageID = 8;
            q.QuestionText = "Do you have high serum HDL cholesterol? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            help = new HelpText();
            help.Header = "High serum HDL cholesterol information";
            help.Description = "High serum HDL cholesterol decreases the risk of coronary artery desease.  This subtracts one risk factor from the sum of positive risk factors above.";
            q.HelpText = help;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "High serum HDL cholesterol > 60 mg/dL";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You do not know this information";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 18
            q = new Question();
            q.QuestionID = 18;
            q.PageID = 8;
            q.QuestionText = "Do you have impaired fasting glucose? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Fasting blood glucose > 100 mg/dL (confirmed by measurement on at least two separate occasions)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You do not know this information";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Page 9 Header
            q = new Question();
            q.QuestionID = 1012;
            q.PageID = 9;
            q.AnswerControlType = Question.Types.Literal;
            q.QuestionText = "Why should I answer these questions?";
            help = new HelpText();
            help.Header = "Why should I answer these questions?";
            help.Description = "By answering these questions it will allow us to find out if there are any risk factors for you to start an exercise program.  If there are risk factors then it will be important for you to see your doctor for your health and safety.";
            q.HelpText = help;
            q.Locked = true;
            q.ShowOnPrintout = false;
            questionList.Add(q);

            // Question 19
            q = new Question();
            q.QuestionID = 19;
            q.PageID = 9;
            q.QuestionText = "Are you at risk of becoming obese? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "High Body Mass Index (BMI) > 30 kg/m2";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "High waist girth (Men > 102 cm, Women > 88 cm)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You do not know this information";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 20
            q = new Question();
            q.QuestionID = 20;
            q.PageID = 9;
            q.QuestionText = "Do you live a sedentary lifestyle? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Not participating in a regular exercise program";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Not accumulating 30 minutes or more of moderate physical activity on most days of the week";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 21
            q = new Question();
            q.QuestionID = 21;
            q.PageID = 9;
            q.QuestionText = "Do you smoke? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Current cigarette smoker";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Quit within the previous 6 months";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Page 10 Header
            q = new Question();
            q.QuestionID = 1013;
            q.PageID = 10;
            q.AnswerControlType = Question.Types.Literal;
            q.QuestionText = "Why should I answer these questions?";
            help = new HelpText();
            help.Header = "Why should I answer these questions?";
            help.Description = "By answering these questions it will allow us to find out if there are any risk factors for you to start an exercise program.  If there are risk factors then it will be important for you to see your doctor for your health and safety.";
            q.HelpText = help;
            q.Locked = true;
            q.ShowOnPrintout = false;
            questionList.Add(q);

            // Question 22
            q = new Question();
            q.QuestionID = 22;
            q.PageID = 10;
            q.QuestionText = "Has a family member experienced myocardial infarction, coronary revascularization or sudden death? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Before 55 years of age in father or other male first degree relative (i.e. brother or son)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Before 55 years of age in mother or other female first degree relative (i.e. sister or daughter)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "You do not know this information";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 23
            q = new Question();
            q.QuestionID = 23;
            q.PageID = 11;
            q.QuestionText = "Allergies? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Animal";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Food";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Household";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Outdoors";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 24
            q = new Question();
            q.QuestionID = 24;
            q.PageID = 11;
            q.QuestionText = "Arthritis? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Osteoarthritis";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Rheumatoid arthritis";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 25
            q = new Question();
            q.QuestionID = 25;
            q.PageID = 11;
            q.QuestionText = "Cardiovascular Conditions? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "High blood pressure";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Arrhythmia";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Coronary heart disease";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Cerebrovascular disease";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Peripheral arterial disease";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Rheumatic heart disease";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Congenital heart disease";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Deep vein thrombosis";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Pulmonary embolism";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Atherosclerosis";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Angina";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Myocardial infarction";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 26
            q = new Question();
            q.QuestionID = 26;
            q.PageID = 11;
            q.QuestionText = "Cancer? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Bladder";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Breast";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Colon/Rectal";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Endometrial";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Kidney";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Leukemia";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Lung";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Melanoma";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Non-Hodgkin lymphoma";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Pancreatic";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Prostate";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Thyroid";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 27
            q = new Question();
            q.QuestionID = 27;
            q.PageID = 12;
            q.QuestionText = "Chronic Pain? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Headaches";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Back";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Neck";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Fibromyalgia";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Myofascial";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "TMJ";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Sciatica";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Carpel tunnel syndrome";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Pelvic";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Neuropathy";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Neuralgia";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 28
            q = new Question();
            q.QuestionID = 28;
            q.PageID = 12;
            q.QuestionText = "Digestive Conditions? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Heart burn";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "GERD";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "IBD";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "IBS";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 29
            q = new Question();
            q.QuestionID = 29;
            q.PageID = 12;
            q.QuestionText = "Diabetes Mellitus? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Diabetes Mellitus (I or II)";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 30
            q = new Question();
            q.QuestionID = 30;
            q.PageID = 13;
            q.QuestionText = "Metabolic Conditions? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Thyroid disorders";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Renal disease";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Liver disease";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 31
            q = new Question();
            q.QuestionID = 31;
            q.PageID = 13;
            q.QuestionText = "Psychological Conditions? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Generalized anxiety disorder";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Anorexia nervosa";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Bulimia nervosa";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Bipolar disorder";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Major depression disorder";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Dysthymic disorder";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Manic depression";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Other type of depression";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 32
            q = new Question();
            q.QuestionID = 32;
            q.PageID = 14;
            q.QuestionText = "Lung Diseases? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Asthma";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "COPD";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Lung disease";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Cystic fibrosis";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 33
            q = new Question();
            q.QuestionID = 33;
            q.PageID = 14;
            q.QuestionText = "Skin Conditions? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Eczema";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Psoriasis";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Question 34
            q = new Question();
            q.QuestionID = 34;
            q.PageID = 14;
            q.QuestionText = "Urinary Tract Conditions? (check if any of these statements are true):";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = false;
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Incontinence";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Blood in urine";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Not completely emptying bladder";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Frequent urination";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Urgent urination";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Burning urination";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            a = new Question();
            a.QuestionText = "Urinary tract infection";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = true;
            questionList.Add(q);

            // Accept all questions as true
            q = new Question();
            q.QuestionID = 2000;
            q.PageID = 15;
            q.QuestionText = "I accept that all the answers provided are true to the best of my knowledge.";
            q.AnswerControlType = Question.Types.CheckBox;
            q.Required = true;
            q.RequiredMessage = "Please verify your answers are true.";
            answers = new List<Question>();
            a = new Question();
            a.QuestionText = "Yes";
            a.AnswerControlType = Question.Types.ListItem;
            answers.Add(a);
            q.ChildItems = answers;
            q.ShowOnPrintout = false;
            questionList.Add(q);

            // Return the populated list
            return questionList;
        }

        #endregion


        public List<TrackableHealthParameter> LoadCurrentTrackableHealthParametersForUser(User u)
        {
            List<TrackableHealthParameter> toReturn = new List<TrackableHealthParameter>();

            TrackableHealthParameter hp1 = new TrackableHealthParameter("Systolic", 110 , "Good");
            TrackableHealthParameter hp2 = new TrackableHealthParameter("Diastolic", 60, "Good");
            TrackableHealthParameter hp3 = new TrackableHealthParameter("Waist Measurement", 32, "Good");
            TrackableHealthParameter hp4 = new TrackableHealthParameter("BMI (Body Mass Index)", 19, "Good");
            TrackableHealthParameter hp5 = new TrackableHealthParameter("Total Cholesterol", 250, "Bad");
            TrackableHealthParameter hp6 = new TrackableHealthParameter("Blood Glucose", 70, "Good");
            TrackableHealthParameter hp7 = new TrackableHealthParameter("Physical Activity Level", 5, "Good");
            TrackableHealthParameter hp8 = new TrackableHealthParameter("Resting Heart Rate", 60, "Good");

            toReturn.Add(hp1);
            toReturn.Add(hp2);
            toReturn.Add(hp3);
            toReturn.Add(hp4);
            toReturn.Add(hp5);
            toReturn.Add(hp6);
            toReturn.Add(hp7);
            toReturn.Add(hp8);
            

            return toReturn;
        }


        public List<Recipe> LoadListOfSubmittedRecipes()
        {
            Recipe r2 = new Recipe();
            r2.name = "fadfadsfasdf";
            RecipeIngredient ri1 = new RecipeIngredient();
            Ingredient ri1I = new Ingredient();
            ri1I.name = "asdfasdf";
            ri1.quantity = 1;
            ri1.measurement = "sfasdff";
            ri1.ingredient = ri1I;
            RecipeIngredient ri2 = new RecipeIngredient();
            Ingredient ri2I = new Ingredient();
            ri2I.name = "gesagfd";
            ri2.quantity = 1;
            ri2.measurement = "gsgsdh";
            ri2.ingredient = ri2I;
            r2.ingredients.Add(ri1);
            r2.ingredients.Add(ri2);
            r2.directions = "fasdf sda fa sdf asdf asd fas dfa sdfasd";
            r2.createdBy = new User("Joe", "Shmo", "jshmo@email.net", new DateTime(2011, 11, 11), "Male", "Caucasian", "53186", "U.S.A.");
            r2.dateSubmitted = new DateTime(2011, 11, 13);
            r2.RecipeID = 000004;

            Recipe r3 = new Recipe();
            r3.name = "asefasefas";
            RecipeIngredient ri3 = new RecipeIngredient();
            Ingredient ri3I = new Ingredient();
            ri3I.name = "feas";
            ri3.quantity = 3;
            ri3.measurement = "ggaseg";
            ri3.ingredient = ri3I;
            RecipeIngredient ri4 = new RecipeIngredient();
            Ingredient ri4I = new Ingredient();
            ri4I.name = "yyearfga";
            ri4.quantity = 8;
            ri4.measurement = "asdavb";
            ri4.ingredient = ri4I;
            r3.ingredients.Add(ri3);
            r3.ingredients.Add(ri4);
            r3.directions = "nsaevsdr gihsd vs v s krjvbsd kvb gbsh";
            r3.createdBy = new User("Jill", "Pill", "jpill@email.net", new DateTime(2011, 11, 11), "Female", "Caucasian", "53186", "U.S.A.");
            r3.dateSubmitted = new DateTime(2011, 11, 13);
            r3.RecipeID = 000005;

            Recipe r4 = new Recipe();
            r4.name = "Ygse  s hfvs";
            RecipeIngredient ri5 = new RecipeIngredient();
            Ingredient ri5I = new Ingredient();
            ri5I.name = "apskpgfsajek";
            ri5.quantity = 5;
            ri5.measurement = "handasdgf";
            ri5.ingredient = ri1I;
            RecipeIngredient ri6 = new RecipeIngredient();
            Ingredient ri6I = new Ingredient();
            ri6I.name = "pplsafjh";
            ri6.quantity = 1;
            ri6.measurement = "cchjgd";
            ri6.ingredient = ri2I;
            r4.ingredients.Add(ri5);
            r4.ingredients.Add(ri6);
            r4.directions = "hhszfhkxdbvb xc bxc bx dvkhfxv";
            r4.createdBy = new User("Joe", "Shmo", "jshmo@email.net", new DateTime(2011, 11, 11), "Male", "Caucasian", "53186", "U.S.A.");
            r4.dateSubmitted = new DateTime(2011, 11, 13);
            r4.RecipeID = 000006;

            List<Recipe> toReturn = new List<Recipe>();
            toReturn.Add(r2);
            toReturn.Add(r3);
            toReturn.Add(r4);

            return toReturn;
        }

        public MyFoodTrackerViewModel LoadMyFoodTrackerRecipes()
        {
            Recipe r1 = new Recipe();
            r1.RecipeID = 12;
            r1.name = "Taco Salad";
            RecipeIngredient taco = new RecipeIngredient();
            Ingredient tacoI = new Ingredient();
            tacoI.name = "taco";
            taco.quantity = 1;
            taco.measurement = "";
            taco.ingredient = tacoI;
            RecipeIngredient salad = new RecipeIngredient();
            Ingredient saladI = new Ingredient();
            saladI.name = "salad";
            salad.quantity = 1;
            salad.measurement = "";
            salad.ingredient = saladI;
            r1.ingredients.Add(taco);
            r1.ingredients.Add(salad);
            r1.directions = "Put taco and salad together.";
            r1.value = 1;

            Recipe r2 = new Recipe();
            r2.RecipeID = 23;
            r2.name = "fadfadsfasdf";
            RecipeIngredient ri1 = new RecipeIngredient();
            Ingredient ri1I = new Ingredient();
            ri1I.name = "asdfasdf";
            ri1.quantity = 1;
            ri1.measurement = "sfasdff";
            ri1.ingredient = ri1I;
            RecipeIngredient ri2 = new RecipeIngredient();
            Ingredient ri2I = new Ingredient();
            ri2I.name = "gesagfd";
            ri2.quantity = 1;
            ri2.measurement = "gsgsdh";
            ri2.ingredient = ri2I;
            r1.ingredients.Add(ri1);
            r1.ingredients.Add(ri2);
            r2.directions = "fasdf sda fa sdf asdf asd fas dfa sdfasd";

            Recipe r3 = new Recipe();
            r3.RecipeID = 34;
            r3.name = "vsadavffsd";
            RecipeIngredient ri3 = new RecipeIngredient();
            Ingredient ri3I = new Ingredient();
            ri3I.name = "usrtrggsg";
            ri3.quantity = 1;
            ri3.measurement = "ysyrrs";
            ri3.ingredient = ri3I;
            RecipeIngredient ri4 = new RecipeIngredient();
            Ingredient ri4I = new Ingredient();
            ri4I.name = "uuisrsg";
            ri4.quantity = 1;
            ri4.measurement = "hhrshrhssdr";
            ri4.ingredient = ri4I;
            r3.ingredients.Add(ri3);
            r3.ingredients.Add(ri4);
            r3.directions = "dasf asd fvr taer t ewf ewafds";
            r3.value = -1;

            /*List<Recipe> toReturn = new List<Recipe>();
            toReturn.Add(r1);
            toReturn.Add(r2);
            toReturn.Add(r3);*/

            MyFoodTrackerViewModel model = new MyFoodTrackerViewModel();
            model.searchResults = new List<Recipe>();
            model.searchResults.Add(r1);
            model.searchResults.Add(r2);
            model.searchResults.Add(r3);

            return model;
        }

        public List<Recipe> LoadPrintRecipe(int id)
        {
            Recipe r1 = new Recipe();
            r1.RecipeID = 12;
            r1.name = "Taco Salad";
            RecipeIngredient taco = new RecipeIngredient();
            Ingredient tacoI = new Ingredient();
            tacoI.name = "taco";
            taco.quantity = 1;
            taco.measurement = "";
            taco.ingredient = tacoI;
            RecipeIngredient salad = new RecipeIngredient();
            Ingredient saladI = new Ingredient();
            saladI.name = "salad";
            salad.quantity = 1;
            salad.measurement = "";
            salad.ingredient = saladI;
            r1.ingredients.Add(taco);
            r1.ingredients.Add(salad);
            r1.directions = "Put taco and salad together.";
            r1.value = 1;

            Recipe r2 = new Recipe();
            r2.RecipeID = 23;
            r2.name = "fadfadsfasdf";
            RecipeIngredient ri1 = new RecipeIngredient();
            Ingredient ri1I = new Ingredient();
            ri1I.name = "asdfasdf";
            ri1.quantity = 1;
            ri1.measurement = "sfasdff";
            ri1.ingredient = ri1I;
            RecipeIngredient ri2 = new RecipeIngredient();
            Ingredient ri2I = new Ingredient();
            ri2I.name = "gesagfd";
            ri2.quantity = 1;
            ri2.measurement = "gsgsdh";
            ri2.ingredient = ri2I;
            r1.ingredients.Add(ri1);
            r1.ingredients.Add(ri2);
            r2.directions = "fasdf sda fa sdf asdf asd fas dfa sdfasd";

            Recipe r3 = new Recipe();
            r3.RecipeID = 34;
            r3.name = "vsadavffsd";
            RecipeIngredient ri3 = new RecipeIngredient();
            Ingredient ri3I = new Ingredient();
            ri3I.name = "usrtrggsg";
            ri3.quantity = 1;
            ri3.measurement = "ysyrrs";
            ri3.ingredient = ri3I;
            RecipeIngredient ri4 = new RecipeIngredient();
            Ingredient ri4I = new Ingredient();
            ri4I.name = "uuisrsg";
            ri4.quantity = 1;
            ri4.measurement = "hhrshrhssdr";
            ri4.ingredient = ri4I;
            r3.ingredients.Add(ri3);
            r3.ingredients.Add(ri4);
            r3.directions = "dasf asd fvr taer t ewf ewafds";
            r3.value = -1;

            List<Recipe> toReturn = new List<Recipe>();
            toReturn.Add(r1);
            toReturn.Add(r2);
            toReturn.Add(r3);

            return toReturn;
        }

        public Recipe LoadPrintRecipe2(int id)
        {
            Recipe r1 = new Recipe();
            r1.RecipeID = 12;
            r1.name = "Taco Salad";
            RecipeIngredient taco = new RecipeIngredient();
            Ingredient tacoI = new Ingredient();
            tacoI.name = "taco";
            taco.quantity = 1;
            taco.measurement = "";
            taco.ingredient = tacoI;
            RecipeIngredient salad = new RecipeIngredient();
            Ingredient saladI = new Ingredient();
            saladI.name = "salad";
            salad.quantity = 1;
            salad.measurement = "";
            salad.ingredient = saladI;
            r1.ingredients.Add(taco);
            r1.ingredients.Add(salad);
            r1.directions = "Put taco and salad together.";
            r1.value = 1;

            return r1;
        }
    }
}
